
import time
import datetime

print datetime.datetime.now()
# .strftime("%y")

d =  datetime.datetime.now()

f = time.time()
print f
print datetime.datetime.fromtimestamp(f)

print "RAVEN_GEN TIME: [start-end]: %s, %s"%(str(d), str(d))
print "RAVEN_GEN TIMESTAMP: [start-end] %f %f"%(f, f)

s = "#OBS_GCS_ROOT/bin/raven --context-change file=default_phytium.xml,file=a64_highest_el.xml,file=a64_asimd.xml,file=a64_mmu_disable.xml,file=workarounds_phytium.xml -f #OBS_RATL_ROOT/ratl_phytium/btl/instr_bringup/a64_single_instruction/templates/ABS_two_reg-a64.xml --output-directory ./out1/a64_single_instruction/a64_asimd_fp_trap_support/ABS_two_reg-a64 --output-file ABS_two_reg-a64_r450__0_#k.out --tarmac-trace ./out1/a64_single_instruction/a64_asimd_fp_trap_support/ABS_two_reg-a64/ABS_two_reg-a64_r450__0_#k.out.tarmac | tee ./out1/a64_single_instruction/a64_asimd_fp_trap_support/ABS_two_reg-a64/ABS_two_reg-a64_r450__0_#k.out.log "
s = s.split("| tee")[1].strip()

print s

# time add
d1 = datetime.date(2014, 2, 28)
print d1
dlt1 = datetime.timedelta(1)
print dlt1
print d1 + dlt1


# print help(datetime)